<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>团团爸爸和妈妈的大冒险</title>
    <script type="text/javascript" src="js/jquery-3.3.1.min.js"></script>
    <link href="css/mylove.css" type="text/css" rel="stylesheet" />
</head>
<body style="background-color: rgba(255, 193, 7, 0.23)">
<audio autoplay="autopaly" loop="loop">
    <source src="masbfca.mp3" type="audio/mp3" />
</audio>
    <div style="text-align: center;">
            1.团子爸爸和团子妈妈第一次见面是什么时候？<br /><br />
            <label><input name="one" type="radio" value="A" />2018-05-01</label><br />
            <label><input name="one" type="radio" value="B" />2018-05-02</label><br />
            <label><input name="one" type="radio" value="C" />2018-05-03</label><br />
            <label><input name="one" type="radio" value="D" />2018-05-04</label><br />
            <br /><br />

            2.团子爸爸和团子妈妈第一次出去玩是什么时候？<br /><br />
            <label><input name="two" type="radio" value="A" />2018-09-23</label><br />
            <label><input name="two" type="radio" value="B" />2018-10-09</label><br />
            <label><input name="two" type="radio" value="C" />2018-09-20</label><br />
            <label><input name="two" type="radio" value="D" />2018-10-11</label><br />
            <br /><br />

            3.团子爸爸和团子妈妈第一次抱抱是什么时候？<br /><br />
            <label><input name="three" type="radio" value="A" />2018-09-08</label><br />
            <label><input name="three" type="radio" value="B" />2018-09-11</label><br />
            <label><input name="three" type="radio" value="C" />2018-09-13</label><br />
            <label><input name="three" type="radio" value="D" />2018-09-15</label><br />
            <br /><br />

            4.团子爸爸和团子妈妈第一天亲亲是什么时候？<br /><br />
            <label><input name="four" type="radio" value="A" />2018-09-13</label><br />
            <label><input name="four" type="radio" value="B" />2018-09-15</label><br />
            <label><input name="four" type="radio" value="C" />2018-09-20</label><br />
            <label><input name="four" type="radio" value="D" />2018-09-26</label><br />
            <br /><br />

            5.2018-10-26这天是什么日子？<br /><br />
            <label><input name="five" type="radio" value="A" />履行承诺</label><br />
            <label><input name="five" type="radio" value="B" />一起出去玩</label><br />
            <label><input name="five" type="radio" value="C" />出去买雪糕</label><br />
            <label><input name="five" type="radio" value="D" />见到了团团</label><br />
            <br /><br />

            6.2018-12-17这天是什么日子？<br /><br />
            <label><input name="six" type="radio" value="A" />一起出去玩</label><br />
            <label><input name="six" type="radio" value="B" />见到了团团</label><br />
            <label><input name="six" type="radio" value="C" />第一次抱抱</label><br />
            <label><input name="six" type="radio" value="D" />履行承诺</label><br />
            <br /><br />

            7.团子哥哥交给了Q毛什么任务？<br /><br />
            <label><input name="seven" type="radio" value="A" />逗妈妈开心</label><br />
            <label><input name="seven" type="radio" value="B" />当妈妈的钥匙扣</label><br />
            <label><input name="seven" type="radio" value="C" />吉祥物</label><br />
            <label><input name="seven" type="radio" value="D" />保护妈妈不被欺负</label><br />
            <br /><br />

            8.大肚弟是谁？<br /><br />
            <label><input name="eight" type="radio" value="A" />大门上的小猪</label><br />
            <label><input name="eight" type="radio" value="B" />阳台门的小猪</label><br />
            <label><input name="eight" type="radio" value="C" />墙上高的小猪</label><br />
            <label><input name="eight" type="radio" value="D" />墙上低的小猪</label><br />
            <br /><br />

            9.1547308800000（时间戳）这一天发生了什么？<br /><br />
            <label><input name="nine" type="radio" value="A" />新年贴小猪</label><br />
            <label><input name="nine" type="radio" value="B" />给团子妈妈表白</label><br />
            <label><input name="nine" type="radio" value="C" />杨健老师请吃饭</label><br />
            <label><input name="nine" type="radio" value="D" />公司年会</label><br />
            <br /><br />

            10.团子爸爸的优点和缺点（团子妈妈最喜欢和最讨厌的）<br /><br />
            <textarea id="ten"></textarea>
            <br /><br />
            <button onclick="answer()">提交</button>
    </div>
<script>
    function answer(){
        var radioOne = document.getElementsByName("one");
        var one=null;
        for(var i=0;i<radioOne.length;i++){
            if(radioOne[i].checked==true) {
                one=radioOne[i].value;
                break;
            }
        }

        var radioTwo = document.getElementsByName("two");
        var two=null;
        for(var i=0;i<radioTwo.length;i++){
            if(radioTwo[i].checked==true) {
                two=radioTwo[i].value;
                break;
            }
        }

        var radioThree = document.getElementsByName("three");
        var three=null;
        for(var i=0;i<radioThree.length;i++){
            if(radioThree[i].checked==true) {
                three=radioThree[i].value;
                break;
            }
        }

        var radioFour = document.getElementsByName("four");
        var four=null;
        for(var i=0;i<radioFour.length;i++){
            if(radioFour[i].checked==true) {
                four=radioFour[i].value;
                break;
            }
        }

        var radioFive = document.getElementsByName("five");
        var five=null;
        for(var i=0;i<radioFive.length;i++){
            if(radioFive[i].checked==true) {
                five=radioFive[i].value;
                break;
            }
        }

        var radioSix = document.getElementsByName("six");
        var six=null;
        for(var i=0;i<radioSix.length;i++){
            if(radioSix[i].checked==true) {
                six=radioSix[i].value;
                break;
            }
        }

        var radioSeven = document.getElementsByName("seven");
        var seven=null;
        for(var i=0;i<radioSeven.length;i++){
            if(radioSeven[i].checked==true) {
                seven=radioSeven[i].value;
                break;
            }
        }

        var radioEight = document.getElementsByName("eight");
        var eight=null;
        for(var i=0;i<radioEight.length;i++){
            if(radioEight[i].checked==true) {
                eight=radioEight[i].value;
                break;
            }
        }

        var radioNine = document.getElementsByName("nine");
        var nine=null;
        for(var i=0;i<radioNine.length;i++){
            if(radioNine[i].checked==true) {
                nine=radioNine[i].value;
                break;
            }
        }

        var ten = $("#ten").val();
        $.get("log","log="+ten);
        if(one=="B"&&two=="A"&&three=="C"&&four=="D"&&five=="A"&&six=="B"&&seven=="D"&&eight=="D"&&nine=="B"){
            alert("恭喜你回答正确，点击确定按钮获取礼物！")
            window.location.href="meteor";
        }else{
            alert("回答错误,只有全部回答正确才能有礼物哦！")
        }
    }



</script>
</body>
</html>